package com.aspose.cells;

class zbpw extends zado {
   public zbpw(zadj var1) {
      this.a = var1;
   }

   public int a(String[] var1) throws Exception {
      for(int var2 = 0; var2 < var1[0].length(); ++var2) {
         switch(var1[0].charAt(var2)) {
         case '\n':
         case '\r':
            this.a.d();
            this.a.g = this.a.a;
            var1[0] = var1[0].substring(var2);
            return 1;
         case '&':
            this.a.d();
            this.a.g = this.a.a;
            var1[0] = var1[0].substring(var2);
            return 1;
         }

         this.a.h = this.a.h + var1[0].charAt(var2);
         if ((var1[0].charAt(var2) == '-' || var1[0].charAt(var2) == ' ') && zatm.a(this.a.h, this.a.i, this.a.q).b() > this.a.o) {
            this.a.d();
            this.a.g = this.a.a;
            var1[0] = "\n" + var1[0].substring(var2 + 1);
            return 1;
         }
      }

      this.a.d();
      var1[0] = "";
      return 1;
   }
}
